#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
struct info
{
	char name[20];
	int poll;
};
int main()
{
	char name[20];
	struct info a = { "小明",0 };
	struct info b = { "张三",0 };
	struct info c = { "小李",0 };
	for (int i = 0; i < 3; i++)
	{
		scanf("%s", name);
		if (strcmp(name,a.name)==0)
		{
			a.poll++;
		}
		if (strcmp(name, b.name)==0)
		{
			b.poll++;
		}
		if (strcmp(name, c.name)==0)
		{
			c.poll++;
		}
	}
	printf("小明的票数%d\n", a.poll);
	printf("张三的票数%d\n", b.poll);
	printf("小李的票数%d\n", c.poll);
	return 0;
}